package com.longshihan.teststudykt

import android.app.Activity
import android.app.Application
import android.os.Bundle
import java.util.*

/**
 * Created by LONGHE001.
 * @time 2019/7/19 0019
 * @des
 * @function
 */
object LifeCycle :Application.ActivityLifecycleCallbacks{
    private val activitys=LinkedList<Activity>()
    fun add(activity: Activity)= activitys.add(activity)

    override fun onActivityPaused(p0: Activity) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivityStarted(p0: Activity) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivityDestroyed(p0: Activity) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivitySaveInstanceState(p0: Activity, p1: Bundle) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivityStopped(p0: Activity) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivityCreated(p0: Activity, p1: Bundle?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onActivityResumed(p0: Activity) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

}